package thread.demo01.base;

public class MyThread extends Thread {

	@Override
	public void run() {
		while (true) {
			System.out.println(this.currentThread().getName());
		}
	}

	public static void main(String[] args) {
		MyThread thread = new MyThread();
		MyThread thread2 = new MyThread();
		// 线程启动
		thread.start(); 
		thread2.start(); 
	}
}